<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/admin/global/addnav" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>

  <div class="page">
    <div class="page-hd">
      <h1>
        <eq name="type" value="edit">{$Think.lang.编辑}
          <else />{$Think.lang.添加}</eq>{$Think.lang.导航}
      </h1>
    </div>

    <div class="form">
      <form id="J_form" method="post" action="{:URL('admin/Global/doaddNav')}" enctype="multipart/form-data">
        <input type="hidden" name="id" value="{$id}">
        <input type="hidden" name="pid" value="{$pid}">
        <dl class="kv">
          <dt>
            <label>{$Think.lang.导航名称}：</label>
          </dt>
          <dd>
            <input class="input-text" type="text" name="name" value="{$name}" id="name" required />
            <span class="required">*</span>
            <div class="kv-error"></div>
            <p class="tip">头部导航显示的名称</p>
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            <label>{$Think.lang.链接地址}：</label>
          </dt>
          <dd>
            <input class="input-text" type="text" name="url" value="{$url}" id="url" style="width:500px" required />
            <span class="required">*</span>
            <div class="kv-error"></div>
            <p class="tip">使用{website}表示网站根地址</p>
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            <label>{$Think.lang.应用排序}：</label>
          </dt>
          <dd>
            <input class="input-text" type="number" name="order_sort" type="text" value="{$order_sort}" id="" />
            <p class="tip">头部导航前后顺序显示，值越小显示越靠前</p>
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            <label>{$Think.lang.状态}：</label>
          </dt>
          <dd>
            <label>
              <input type="radio" name="status" value="0" <eq name="status" value="0">checked</eq>>关闭</label>
            <label>
              <input type="radio" name="status" value="1" <neq name="status" value="0">checked</neq>>开启</label>
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            <label>{$Think.lang.未登录显示状态}：</label>
          </dt>
          <dd>
            <label>
              <input type="radio" name="no_login_show" value="0" <neq name="no_login_show" value="1">checked</neq>>关闭</label>
            <label>
              <input type="radio" name="no_login_show" value="1" <eq name="no_login_show" value="1">checked</eq>>开启</label>
          </dd>
        </dl>

        <div class="actions">
          <input class="btn btn-y" type="submit" value="{$Think.lang.OK}" />
          <a href="javascript:history.go(-1);" class="btn btn-n">{$Think.lang.return}</a>
        </div>
      </form>
    </div>

  </div>
</body>

</html>
